<?php
/**
 * Created by PhpStorm.
 * User: hp
 * Date: 2019/4/1
 * Time: 20:06
 */

namespace App\Http\Controllers\VipChannel\Withdraw\Transformers;

class FinancialStatTransformer
{
    public function transform($item)
    {
        return [
            'id' => $item->id,
            'phone' => $item->phone,
            'account_name' => $item->account_name,
            'account_bank' => $item->account_bank,
            'channel_user_id' => $item->channel_user_id,
            'total_charge_amount' => $item->total_charge_amount,
            'distribution_channel_id' => $item->distribution_channel_id,
            'enable_withdrawal_amount' => number_format($item->enable_withdrawal_amount, 2)
        ];
    }
}